package com.example.huajia.wx.service;

import cn.hutool.json.JSONObject;
import com.example.huajia.wx.db.pojo.TbUser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface UserService {
    public int registerUser(String code,String nickname,String photo);

    public Integer login(String code);

    public TbUser searchById(int userId);

    public ArrayList<HashMap> searchUserById(int userId);

    public HashMap searchUserSummary(int userId);

    public ArrayList<HashMap> searchMembers(List param);

    public List<HashMap> selectUserPhotoAndName(List param);

    public void insertUser(HashMap param);

    public int updateUserInfo(HashMap param);

    public JSONObject searchUserContactList();

    public int searchUserPoint(Integer id);

    public int updateUserPoint(HashMap param);

    public ArrayList<HashMap> getAcceptId(String friend);

}
